package com.jiukuaidao.zhulin.module.order.contract;

import android.content.Context;

import com.jiukuaidao.library.base.IBasePresenter;
import com.jiukuaidao.library.base.IBaseView;
import com.jiukuaidao.zhulin.entity.ApiOrderDetailInfo;

/**
 * Author : BinarySatan
 * Date : 2016/6/3
 * Description :
 */
public interface OrderDetailContract {
    public interface View extends IBaseView<Presenter> {
        Context getContext();

        String getOrderNumber();

        /**
         * 获取订单详情信息, (bean)
         *
         * @return ApiOrderDetailInfo
         */
        ApiOrderDetailInfo getOrderDetailInfo();

        /**
         * 取消订单原因
         *
         * @return
         */
        String getOrderCancelReason();

        void getOrderDetailDataSuc(ApiOrderDetailInfo data);

        /**
         * 补充原因
         */
        String getRsnRemark();
    }

    public interface Presenter extends IBasePresenter {
        void loadOrderDetailData();

        /**
         * 取消订单
         */
        void orderCancel();

    }
}
